﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using CarShopManagerDAL;

namespace CarShopManagerBLL
{
    public class CarInfoBLL
    {
           /// <summary>
        /// 车辆预定列表
        /// </summary>
        /// <param name="carName">车辆名称</param>
        /// <param name="carType">车辆类型</param>
        /// <returns></returns>
        public static DataTable GetCarOrderList(string carName, int carType)
        {
            return CarInfoDAL.GetCarOrderList(carName, carType);
        }
        /// <summary>
        /// 根据车辆编号查询车辆信息
        /// </summary>
        /// <param name="id">车辆编号</param>
        /// <returns></returns>
        public static DataTable GetCarInfoById(int id)
        {
            return CarInfoDAL.GetCarInfoById(id);
        }
         /// <summary>
        /// 修改车辆状态和销售日期
        /// </summary>
        /// <param name="id">车辆编号</param>
        /// <returns></returns>
        public static int UpdateCarInfo(int id)
        {
            return CarInfoDAL.UpdateCarInfo(id);
        }
    }
}
